﻿using IT_RoadBlock.Entities;
using IT_RoadBlock.Models;
using System;
using System.Collections.Generic;

namespace IT_RoadBlock.ViewModes
{
    public class MainWindowViewModel
    {
        private int selectIndex = 0;

        /*public MainWindowViewModel(TProjectInfo projectInfo)
        {
            this.projectInfo = projectInfo;
        }*/

        public int SelectIndex { get => selectIndex; set {
                if (selectIndex != value)
                {
                    SelectedIndexChange?.Invoke(value);
                }
                selectIndex = value;
            }
        }

        /// <summary>
        /// 选项卡变动
        /// </summary>
        public Action<int> SelectedIndexChange { get; set; }

        public List<NavMenu> Datas { get; set; } = new List<NavMenu>
        {
            new NavMenu{Name="项目信息"},
            new NavMenu{Name="代码分析"},
        };
    }
}
